<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title>MOON</title>
<link rel="stylesheet" th:href="@{/moon/css/bootstrap.css}" />
<link rel="stylesheet" th:href="@{/icon/css/font-awesome.min.css}" />
</head>
<body class="bg-b">
	<div class="container-fluid" id="app">
		<div class="row">
			<div class="col text-center bg-danger text-white shadow">MQ基础练习</div>
		</div>
		<div class="form-inline mt-2">
			<input type="text" class="form-inline ml-2" id="info">
			<button class="btn btn-success btn-sm ml-2" @click="putMq();">提交MQ</button>
			<button class="btn btn-danger btn-sm ml-2" @click="getMq();">获取MQ</button>
		</div>
	</div>
	<!-- js -->
	<script th:src="@{/moon/js/jquery.js}"></script>
	<script th:src="@{/moon/js/vue.js}"></script>
	<script th:src="@{/layer/layer.js}"></script>
	<script th:inline="javascript">
		//
		var vue=new Vue({
			el:"#app",
			data:{

			},
			methods:{
				putMq: function(){
					$.post("/moon/mq/putMq",{info:$("#info").val()},function (data) {
						layer.msg(data);
					})
				},
				getMq:function () {
					$.post("/moon/mq/getMq",{},function (data) {
						layer.msg(data);
					})
				}
			}
		});
	</script>
</body>
</html>